<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/template/basic.jspf"%>
</head>
<body>
	<div class="wrap">
		<div class="row-fluid panel panel-default">
			<div class="panel-body">
					<div class="row-fluid">
					<form action="form" method="post" id="form" name="form" class="form-horizontal">
							<div class="form-group">
								<label class="col-xs-2 control-label">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名</label>
								<div class="col-xs-8">
									<input type="hidden" value="${user.user_id}"
										name="sysUserFormMap.user_id" id="user_id"> <input
										type="text" class="form-control" placeholder="请输入姓名"
										name="sysUserFormMap.user_name" required-message="姓名格式不正确"
										value="${user.user_name }" check-type="required" maxlength="20">
								</div>
							</div>
							<div class="form-group">
								<label class="col-xs-2 control-label">账&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
								<div class="col-xs-8">
									
									<c:if test="${empty user.user_account }">
										<input type="text" id="account" class="form-control" placeholder="请输入账号" name="sysUserFormMap.user_account"
									      value="${user.user_account }" required-message="账号格式不正确" check-type="word required" maxlength="20">
										
									</c:if>
									<c:if test="${!empty user.user_account }">
										<input type="text" class="form-control" value="${user.user_account }"	disabled="disabled">
										<input type="hidden" name="sysUserFormMap.user_account"	value="${user.user_account }">
									</c:if>
							</div>
							</div>

							<div class="form-group">
								<label class="col-xs-2 control-label">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码</label>
								<div class="col-xs-8">
									<c:if test="${empty user.password }">
										<input type="text" class="form-control" value="888888" disabled="disabled">
										<input type="hidden" name="sysUserFormMap.password"	value="888888">
									</c:if>
									<c:if test="${!empty user.password }">
										<input type="text" class="form-control" value="******"	disabled="disabled">
										<input type="hidden" name="sysUserFormMap.password"	value="${user.password }">
									</c:if>
									
								</div>
							</div>
							
						    <div class="form-group">
								<label class="col-xs-2 control-label">排&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;序</label>
								<div class="col-xs-8">
										<input type="text" class="form-control" placeholder="请输入序列" name="sysUserFormMap.sequence"
									      value="${user.sequence }" required-message="序列格式不正确" check-type="required  number" maxlength="4">		
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-xs-2 control-label">领&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;导</label>
								<div class="col-xs-8">
									<input type="text" class="form-control" placeholder="请选择所属领导"
										id="leaderShowId" value="${leaderBean.user_name }">
									<app:showList formatShow="[user_name(user_account)]"
										url="${ctx}/common/likeFind.shtml?className=cn.yxcps.crm.system.entity.SysUserFormMap&limit=10&fields=user_account,user_name"
										bindingId="leaderShowId" formatHide="user_id,user_name"
										click="clickList" />
									<input type="hidden" id="leaderHiddenId"
										name="sysUserFormMap.leader_Id" value="${leaderBean.user_id }">
								</div>
							</div>
							<div class="form-group">
								<label class="col-xs-2 control-label">工&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
								<div class="col-xs-8">
									<c:if test="${empty user.job_id }">
										<input type="text" class="form-control" placeholder="请输入工号"  required-message="工号格式不正确" check-type="word"
										name="sysUserFormMap.job_id" id="job_id"  value="" maxlength="10">
									</c:if>	
								
								    <c:if test="${!empty user.job_id }">
										<input type="text" class="form-control" value="${user.job_id }" disabled="disabled">
										<input type="hidden" class="form-control" placeholder="请输入工号" name="sysUserFormMap.job_id" id="job_id"
										value="${user.job_id }" >
									</c:if>	
								</div>
							</div>
							<div class="form-group">
								<label class="col-xs-2 control-label">邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱</label>
								<div class="col-xs-8">
									<input type="text" class="form-control" placeholder="请输入邮箱地址"
										required-message="邮箱格式不正确" check-type="mail"
										name="sysUserFormMap.email" value="${user.email }" maxlength="30">
								</div>
							</div>
							<div class="form-group">
								<label class="col-xs-2 control-label">Q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Q</label>
								<div class="col-xs-8">
									<input type="text" class="form-control" placeholder="请输入企业QQ"
										required-message="QQ格式不正确" check-type="number"
										name="sysUserFormMap.enterprise_qq" value="${user.enterprise_qq }" maxlength="30">
								</div>
							</div>
							<div class="form-group">
								<label class="col-xs-2 control-label">部&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;门</label>
								<div class="col-xs-8">
									<!-- 如果用户的部门id为空，则认为是新增，新增不提供修改 -->
									<input type="text" id="treeDept" class="form-control" value="${deptName}"	readonly="readonly"/>
									<app:showTree id="dept_list" node="depts" bindingId="treeDept" nodeAction="selectDept" hideNodes="${hiddenDeptTree }"/>
									<input type="hidden" name="sysUserFormMap.dept_id" id="deptId"	value="${deptId}" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-xs-2 control-label">状态</label>
								<div class="col-xs-8">
									<select name="sysUserFormMap.state" class="form-control">
										<option value="0"
											<c:if test="${user.state=='0'}">  selected="selected"</c:if>>在职</option>
										<option value="1"
											<c:if test="${user.state=='1'}">  selected="selected"</c:if>>离职</option>
									</select>
								</div>
							</div>
							</form>
						</div>
					
					</div>
		</div>
	</div>
	<script type="text/javascript" src="${ctx}/js/system/user/info.js"></script>
</body>
</html>

